<script id="list-tpl" type="text/html" data-params='{"url":"/education/admin/operator","pageid":"#page", "dataName":"operatorData"}'>
    <table id="example" class="layui-table lay-even" data-name="operatorData" data-tplid="list-tpl">
        <thead>
        <tr>
            <th width="30"><input type="checkbox" id="checkall" data-name="ids" lay-filter="check"
                                      lay-skin="primary"></th>
            <th>模块名</th>
            <th>权限ID</th>
            <th>权限名</th>
            <th>路径</th>
            <th>是否分页</th>
            <th>是否权限认证</th>
            <th>记录日志</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        {{# layui.each(d.list, function(index, item){ }}
        <tr>
            <td><input type="checkbox" name="ids" value="{{ item.ids}}" lay-skin="primary"></td>
            <td>{{ item.modulenames||'' }}</td>
            <td>{{ item.ids}}</td>
            <td>{{ item.names||''}}</td>
            <td>{{ item.url||''}}</td>
            <td>{{# if(item.splitpage == '1'){ }}是{{#  } }}
                {{# if(item.splitpage == '0'){ }}否{{#  } }}
            </td>
            <td>{{# if(item.privilegess == '1'){ }}是{{#  } }}
                {{# if(item.privilegess == '0'){ }}否{{#  } }}
            </td>
            <td>{{ item.syslog == 1 ? '是' : '否'}}</td>
            <td>
                <!--<button class="layui-btn layui-btn-mini modal-catch" beforeFun="beforeUpdate"
                        data-params='{"content": ".add-subcat","full":"","title":"编辑{{= item.name}}", "key":"id={{item.id}}","data":"url=/education/admin/operator/update","type":"1"}'>
                    <i class="iconfont">&#xe653;</i>编辑
                </button>-->
                <button class="layui-btn layui-btn-mini" onclick="javascript:beforeUpdate('{{item.ids}}');">
                    <i class="iconfont">&#xe653;</i>编辑
                </button>
                <button class="layui-btn layui-btn-mini layui-btn-danger ajax"
                        data-params='{"url": "/education/admin/operator/delete/{{item.ids}}", "confirm":"true", "method":"post"}'>
                    <i class="iconfont">&#xe626;</i>删除
                </button></td>
            </td>
        </tr>
        {{# }); }}
        </tbody>

    </table>
</script>